﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModifyPrice.aspx.cs" Inherits="RGPWEB.admin.ModifyPrice.ModifyPrice" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>修改价格</title>
    <link href="../../inc/Style/index.css" rel="stylesheet" type="text/css" />
    <link href="../../inc/Style/childindex.css" rel="stylesheet" type="text/css" />
    <link href="../../inc/Style/GridView.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 151px;
        }
        .style3
        {
            width: 32px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
 <div>
    <asp:Panel ID="TitlePanel" runat="server" CssClass="titlePadding" Height="21px" 
        Width="800px">
        修改采购价格
    </asp:Panel> 
 </div>
    <div>
    </div>
    <div>
    </div>
    <div>
        <table class="style1">
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server" Width="200px"></asp:TextBox>
                    <asp:Button ID="ButtonFind" runat="server" onclick="ButtonFind_Click" 
                        Text="筛选" />
                </td>
                <td class="style3">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </div>
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            Width="100%" DataKeyNames="fitemid" AllowSorting="True" 
            onrowdatabound="GridView1_RowDataBound">
            <RowStyle CssClass="Row" />
            <Columns>
                <asp:CommandField ShowEditButton="True" >
                    <ItemStyle Width="60px" Wrap="False" />
                </asp:CommandField>
                <asp:BoundField DataField="fnumber" HeaderText="料号" ReadOnly="True" 
                    SortExpression="fnumber" />
                <asp:BoundField DataField="fname" HeaderText="名称" ReadOnly="True" 
                    SortExpression="fname" />
                <asp:BoundField DataField="fmodel" HeaderText="规格" ReadOnly="True" 
                    SortExpression="fmodel" />
                <asp:BoundField DataField="fplanprice" HeaderText="价格" 
                    SortExpression="fplanprice" DataFormatString="{0:N}" HtmlEncode="False" />
                <asp:BoundField DataField="fnote" HeaderText="备注" ReadOnly="True" 
                    SortExpression="fnote" />
                <asp:BoundField DataField="fitemid" HeaderText="编号" ReadOnly="True" 
                    SortExpression="fitemid" Visible="False" />
                <asp:BoundField DataField="fdeleted" HeaderText="是否删除" ReadOnly="True" 
                    SortExpression="fdeleted" Visible="False" />
            </Columns>
            <HeaderStyle CssClass="HeadingCell" ForeColor="White" />
            <AlternatingRowStyle CssClass="AlternatingRow" />
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
            TypeName="apriceBll" UpdateMethod="UpdateQuery">
            <UpdateParameters>
                <asp:Parameter Name="fnumber" Type="String" />
                <asp:Parameter Name="fname" Type="String" />
                <asp:Parameter Name="fmodel" Type="String" />
                <asp:Parameter Name="fplanprice" Type="Decimal" />
                <asp:Parameter Name="fnote" Type="String" />
                <asp:Parameter Name="fdeleted" Type="Int16" />
                <asp:Parameter Name="original_fitemid" Type="Int32" />
            </UpdateParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByFnumber" 
            TypeName="apriceBll" UpdateMethod="UpdateQuery">
            <UpdateParameters>
                <asp:Parameter Name="fnumber" Type="String" />
                <asp:Parameter Name="fname" Type="String" />
                <asp:Parameter Name="fmodel" Type="String" />
                <asp:Parameter Name="fplanprice" Type="Decimal" />
                <asp:Parameter Name="fnote" Type="String" />
                <asp:Parameter Name="fdeleted" Type="Int16" />
                <asp:Parameter Name="original_fitemid" Type="Int32" />
            </UpdateParameters>
            <SelectParameters>
                <asp:ControlParameter ControlID="TextBox1" Name="_fnumber" PropertyName="Text" 
                    Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <br />
    </div>
    </form>
</body>
</html>
